home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1122 / 1122.xpi / chrome / tabmixplus.jar / content / tabmixplus / about.xul next >
Extensible Markup Language  |  2009-09-25  |  6KB  |  130 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4. <?xml-stylesheet href="chrome://mozapps/skin/extensions/about.css" type="text/css"?>
  5. <!DOCTYPE bindings [
  6. <!ENTITY % aboutDTD SYSTEM "chrome://mozapps/locale/extensions/about.dtd" >
  7. %aboutDTD;
  8. <!ENTITY % miscDTD SYSTEM "chrome://tabmixplus/locale/misc.dtd" >
  9. %miscDTD;
  10. ]>
  11. <dialog id="genericAbout"
  12.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  13.         buttons="accept"
  14.         onload="init();">
  15.  
  16.    <script type="application/x-javascript" src="chrome://tabmixplus/content/links/userInterface.js"/>
  17. <script type="application/x-javascript">
  18.   <![CDATA[
  19. function init() {
  20.  var extensionsStrings = document.getElementById("extensionsStrings");
  21.  document.title = extensionsStrings.getFormattedString("aboutWindowTitle", ["Tab Mix Plus"]);
  22.  var extensionVersion = document.getElementById("extensionVersion");
  23.  extensionVersion.value = extensionsStrings.getFormattedString("aboutWindowVersionString", [getInstalledVersion()]);
  24.  var acceptButton = document.documentElement.getButton("accept");
  25.  acceptButton.label = extensionsStrings.getString("aboutWindowCloseButton");
  26.  var descriptionString =  document.getElementById("descriptionString");
  27.  var extensionDescription = document.getElementById("extensionDescription");
  28.  extensionDescription.value = descriptionString.getString('extensions.{dc572301-7619-498c-a57d-39143191b318}.description');
  29.  }
  30.  const TMP_EXTENSION_ID = "{dc572301-7619-498c-a57d-39143191b318}";
  31. function getInstalledVersion() {
  32.     var version = null;
  33.     try
  34.     {
  35.         var item = getUpdateItem()
  36.         if (item)
  37.             version = item.version;
  38.     } catch (e) {}
  39.     return version;
  40. }
  41.  
  42. function getUpdateItem() {
  43.     var extensionManager = Components.classes["@mozilla.org/extensions/manager;1"]
  44.                                                                      .getService(Components.interfaces.nsIExtensionManager);
  45.     // FF 1.1+
  46.     if ('getItemForID' in extensionManager)
  47.         return extensionManager.getItemForID(TMP_EXTENSION_ID);
  48.     // FF 1.0
  49.     var itemList = extensionManager.getItemList(TMP_EXTENSION_ID, Components.interfaces.nsIUpdateItem.TYPE_EXTENSION, {});
  50.     if (itemList && itemList.length > 0)
  51.         return itemList[0];
  52.  
  53.     return null;
  54. }]]>
  55. </script>
  56.  
  57.     <stringbundleset id="aboutSet">
  58.      <stringbundle id="extensionsStrings" src="chrome://mozapps/locale/extensions/extensions.properties"/>
  59.      <stringbundle id="descriptionString" src="chrome://tabmixplus/locale/tabmix.properties" />
  60.     </stringbundleset>
  61.  
  62.   <vbox id="clientBox" flex="1">
  63.   <hbox align="start">
  64.   <vbox flex="1">
  65.      <label id="extensionName" value="Tab Mix Plus" crop="right"/>
  66.      <label id="extensionVersion" crop="right"/>
  67.      <description id="extensionDescription"/>
  68.      </vbox>
  69.      <vbox id="logoBox">
  70.      <image src="chrome://tabmixplus/skin/tmp.png"/>
  71.      </vbox>
  72.      </hbox>
  73.  
  74.     <label id="extensionCreatorLabel" value="&creator.label;"/>
  75. <hbox align="start">
  76.       <vbox flex="1">
  77.        <label value="ONEMEN" flex="1" crop="right"/>      
  78.        <label value="Gary Reyes [CPU]" flex="1" crop="right"/>
  79.      </vbox>
  80. <vbox id="extensionHomepage" style="cursor:default;">
  81. <label class="text-link" value="&homepage.label;" style="cursor:pointer;"
  82.           onclick="TMP_openURL('http://tmp.garyr.net', event)"/>
  83.        <hbox flex="1">
  84.        <label value="&forum.label;" style="cursor:pointer;" class="text-link" onclick="TMP_openURL('http://tmp.garyr.net/forum', event)"/>
  85. <!--
  86.        <label value="&faq.label;" style="cursor:pointer;" class="text-link" onclick="TMP_openURL('http://tmp.garyr.net/faq', event)"/>
  87. -->
  88.        <label value="&help.label;" style="cursor:pointer;" class="text-link" onclick="TMP_openURL('http://tmp.garyr.net/help', event)"/>
  89.        </hbox>
  90. </vbox>
  91. </hbox>
  92.  
  93.      <label id="extensionContributors">&contributors.label;</label>
  94.      <vbox flex="1" id="contributorsBox" style="overflow: auto; height: 100px;" >
  95.     <label value="SUN Chun-Yen" class="contributor" />
  96.     <label value="Piotr Sielski [graphics]" class="contributor" />
  97.     <label value="kompix [ca-AD]" class="contributor" />
  98.     <label value="Alena Ja┼íprov├í [cs-CZ]" class="contributor" />
  99.     <label value="AlleyKat [da-DK]" class="contributor" />
  100.     <label value="ReinekeFux [de-DE]" class="contributor" />
  101.     <label value="Juan Guillermo Gamba [es-ES]" class="contributor" />
  102.     <label value="urko [es-ES]" class="contributor" />
  103.     <label value="Pierre [fr-FR]" class="contributor" />
  104.     <label value="Ptit Lutin [fr-FR]" class="contributor" />
  105.     <label value="Tibox [fr-FR]" class="contributor" />
  106.     <label value="moZes [fy-NL]" class="contributor" />
  107.     <label value="sipster [fy-NL]" class="contributor" />
  108.     <label value="truijentink [fy-NL]" class="contributor" />
  109.     <label value="KAMI [hu-HU]" class="contributor" />
  110.     <label value="Luana Di Muzio [it-IT]" class="contributor" />
  111.     <label value="Shadow912 [ja]" class="contributor" />
  112.     <label value="Flactal [ko-KR]" class="contributor" />
  113.     <label value="Jonas [lt-LT]" class="contributor" />
  114.     <label value="Alf, markh and Juliette [nl-NL]" class="contributor" />
  115.     <label value="Leszek(teo)Zyczkowski [pl-PL]" class="contributor" />
  116.     <label value="Pardal Freudenthal [pt-BR]" class="contributor" />
  117.     <label value="teboga [pt-BR]" class="contributor" />
  118.     <label value="ultravioletu [ro-RO]" class="contributor" />
  119.     <label value="ArtLonger [ru-RU]" class="contributor" />
  120.     <label value="Jacen [sk-SK]" class="contributor" />
  121.     <label value="Aycan Demirel [tr-TR]" class="contributor" />
  122.     <label value="ErkanKaplan [tr-TR]" class="contributor" />
  123.     <label value="Fatih [tr-TR]" class="contributor" />
  124.     <label value="fang5566 [zh-CN]" class="contributor" />
  125.     <label value="yuoo2k [zh-TW]" class="contributor" />
  126.     </vbox>
  127.   </vbox>
  128.    <separator id="groove" class="groove"/>
  129.  </dialog>
  130.